package com.um.jdy.platform.device.entity.dto;

import com.um.springboot.starter.orm.params.PageDTO;
import com.um.springboot.starter.orm.params.PageParams;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author 邓南辉
 * 日期 2023/6/21
 * 版权所有 广州优匠科技有限公司
 */
@Data
public class AlarmRecordPageDTO extends PageDTO {

    @ApiModelProperty("设备编码")
    protected String code;

    @ApiModelProperty("当前故障：No 历史故障:Yes")
    protected String status;

    @ApiModelProperty("设备类型：EB-单车桩 EV-汽车桩 EBox-充电柜 BSB-换电柜 PB-充电宝")
    protected String deviceType;

    @Override
    public PageParams toPageParams() {
        PageParams pageParams = this.toPageParams(
                new String[]{"code","status","deviceType"},
                new String[]{"ar.code","ar.status","ar.device_type"});
        return pageParams;
    }
}
